<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  

  
  <title>linux—awk | Threadv</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="linux—awk语法123awk [选项参数] &amp;apos;script&amp;apos; var=value file(s)或awk [选项参数] -f scriptfile var=value file(s) awk内置变量   变量名 属性     $0 当前记录，一整行   $1,$2,3….a 当">
<meta name="keywords" content="linux">
<meta property="og:type" content="article">
<meta property="og:title" content="linux—awk">
<meta property="og:url" content="http://yoursite.com/2020/01/01/linux_awk/index.html">
<meta property="og:site_name" content="Threadv">
<meta property="og:description" content="linux—awk语法123awk [选项参数] &amp;apos;script&amp;apos; var=value file(s)或awk [选项参数] -f scriptfile var=value file(s) awk内置变量   变量名 属性     $0 当前记录，一整行   $1,$2,3….a 当前记录的第n个区域，区域间由FS分隔。   FS 输入区域分隔符，默认是空格。field sep">
<meta property="og:updated_time" content="2020-04-08T13:21:34.930Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="linux—awk">
<meta name="twitter:description" content="linux—awk语法123awk [选项参数] &amp;apos;script&amp;apos; var=value file(s)或awk [选项参数] -f scriptfile var=value file(s) awk内置变量   变量名 属性     $0 当前记录，一整行   $1,$2,3….a 当前记录的第n个区域，区域间由FS分隔。   FS 输入区域分隔符，默认是空格。field sep">
  
    <link rel="alternate" href="/atom.xml" title="Threadv" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link rel="stylesheet" href="/css/style.css">
</head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Threadv</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Suche"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-linux_awk" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/01/01/linux_awk/" class="article-date">
  <time datetime="2020-01-01T07:09:12.000Z" itemprop="datePublished">2020-01-01</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      linux—awk
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h3 id="linux—awk"><a href="#linux—awk" class="headerlink" title="linux—awk"></a>linux—awk</h3><h5 id="语法"><a href="#语法" class="headerlink" title="语法"></a>语法</h5><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">awk [选项参数] &apos;script&apos; var=value file(s)</span><br><span class="line">或</span><br><span class="line">awk [选项参数] -f scriptfile var=value file(s)</span><br></pre></td></tr></table></figure>
<h5 id="awk内置变量"><a href="#awk内置变量" class="headerlink" title="awk内置变量"></a>awk内置变量</h5><table>
<thead>
<tr>
<th>变量名</th>
<th>属性</th>
</tr>
</thead>
<tbody>
<tr>
<td>$0</td>
<td>当前记录，一整行</td>
</tr>
<tr>
<td>$1,$2,3….a</td>
<td>当前记录的第n个区域，区域间由FS分隔。</td>
</tr>
<tr>
<td>FS</td>
<td>输入区域分隔符，默认是空格。field separator</td>
</tr>
<tr>
<td>NF</td>
<td>当前记录中的区域个数，就是有多少列。number of field</td>
</tr>
<tr>
<td>NR</td>
<td>已经读出的记录数，就是行号，从1开始。number of record</td>
</tr>
<tr>
<td>RS</td>
<td>输入的记录分隔符默认为换行符。record separator</td>
</tr>
<tr>
<td>OFS</td>
<td>输出区域分隔符，默认也是空格。output record separator</td>
</tr>
<tr>
<td>FNR</td>
<td>当前文件的读入记录号，每个文件重新计算。</td>
</tr>
<tr>
<td>FILENAME</td>
<td>当前正在处理的文件的文件名</td>
</tr>
</tbody>
</table>
<h5 id="选项参数说明："><a href="#选项参数说明：" class="headerlink" title="选项参数说明："></a>选项参数说明：</h5><ul>
<li>-F fs or –field-separator fs<br>指定输入文件折分隔符，fs是一个字符串或者是一个正则表达式，如-F:。</li>
<li>-v var=value or –asign var=value<br>赋值一个用户定义变量。</li>
<li>-f scripfile or –file scriptfile<br>从脚本文件中读取awk命令。</li>
<li>-mf nnn and -mr nnn<br>对nnn值设置内在限制，-mf选项限制分配给nnn的最大块数目；-mr选项限制记录的最大数目。这两个功能是Bell实验室版awk的扩展功能，在标准awk中不适用。</li>
<li>-W compact or –compat, -W traditional or –traditional<br>在兼容模式下运行awk。所以gawk的行为和标准的awk完全一样，所有的awk扩展都被忽略。</li>
<li>-W copyleft or –copyleft, -W copyright or –copyright<br>打印简短的版权信息。</li>
<li>-W help or –help, -W usage or –usage<br>打印全部awk选项和每个选项的简短说明。</li>
<li>-W lint or –lint<br>打印不能向传统unix平台移植的结构的警告。</li>
<li>-W lint-old or –lint-old<br>打印关于不能向传统unix平台移植的结构的警告。</li>
<li>-W posix<br>打开兼容模式。但有以下限制，不识别：/x、函数关键字、func、换码序列以及当fs是一个空格时，将新行作为一个域分隔符；操作符<strong>和</strong>=不能代替^和^=；fflush无效。</li>
<li>-W re-interval or –re-inerval<br>允许间隔正则表达式的使用，参考(grep中的Posix字符类)，如括号表达式[[:alpha:]]。</li>
<li>-W source program-text or –source program-text<br>使用program-text作为源代码，可与-f命令混用。</li>
<li>-W version or –version<br>打印bug报告信息的版本。</li>
</ul>
<hr>
<ul>
<li>record  记录，行</li>
<li>filed  域，区域，字段，列</li>
<li>NF（number of field）表示一行中的区域（列）数量，$NF取最后一个区域。</li>
<li>$符号表示取某个列（区域），$1,2,NF</li>
<li>NR (number of record) 行号,awk对每一行的记录号都有一个内置变量NR来保存，每处理完一条记录NR的值就会自动+1</li>
<li>FS（-F）field separator 列分隔符，以什么把行分隔成多列</li>
<li></li>
</ul>
<h5 id="用法一"><a href="#用法一" class="headerlink" title="用法一"></a>用法一</h5><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">awk &apos;&#123;[pattern] action&#125;&apos; &#123;filenames&#125;   # 行匹配语句 awk &apos;&apos; 只能用单引号</span><br></pre></td></tr></table></figure>
<ul>
<li>awk ‘BEGIN{}END{}’  # 开始和结束</li>
<li>awk ‘/Running/‘     # 正则匹配</li>
<li>awk ‘/aa/,/bb/‘     # 区间匹配</li>
<li>awk ‘$2~/XXX/‘      # 字段匹配 </li>
<li>awk ‘$2!~/XXX/‘     # 字段匹配 </li>
<li>awk ‘NR==2’         # 取第二行</li>
<li>awk ‘NR&gt;1’          # 去掉第一行</li>
</ul>
<hr>
<ul>
<li>-F 参数指定字段分隔符</li>
<li>BEGIN{FS=””} 也可以表示分隔符</li>
<li>$0 代表原来的行</li>
<li>$1 代表第一个字段</li>
<li>$N 代表第N个字段</li>
<li>$NF 代表最后一个字段</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">统计行数</span><br><span class="line">awk &apos;END&#123;print NR&#125;&apos; test.log</span><br><span class="line">wc -l test.log</span><br><span class="line"></span><br><span class="line">分割</span><br><span class="line">awk -F &quot;#&quot; &apos;&#123;print $NF&#125;&apos; awk.txt </span><br><span class="line">awk -F &apos;[#$]&apos; &apos;&#123;print $NF&#125;&apos; awk.txt </span><br><span class="line">分割 （条件动作）</span><br><span class="line">awk -F &quot;#&quot; &apos;NR==2&#123;print $1&#125;&apos; awk.txt</span><br><span class="line">多个模式和动作</span><br><span class="line">awk -F &quot;#&quot; &apos;NR==1&#123;print $NF&#125;NR==3&#123;print $NF&#125;&apos; awk.txt</span><br><span class="line">FNR与NR类似，不过多文件记录不递增，每个文件都从1开始</span><br><span class="line">awk &apos;&#123;print FNR&#125;&apos; awk.txt awk_space.txt</span><br></pre></td></tr></table></figure>
<ul>
<li>正则</li>
</ul>
<table>
<thead>
<tr>
<th>元字符</th>
<th>功能</th>
<th>示例</th>
<th>解释</th>
</tr>
</thead>
<tbody>
<tr>
<td>^</td>
<td>字符串开头</td>
<td>/^cre</td>
<td>匹配所有以cre开头的字符串</td>
</tr>
<tr>
<td>$</td>
<td>字符串结尾</td>
<td>/cre$/</td>
<td>匹配所有以cr结尾的字符串</td>
</tr>
<tr>
<td>.</td>
<td>匹配任意单个字符串</td>
<td>/c..l/</td>
<td>匹配字母c，任意两个字符再以l结尾的行，如 caal</td>
</tr>
<tr>
<td>*</td>
<td>重复0个或多个前一个字符</td>
<td>/a*cal/</td>
<td>匹配0个或多个a之后紧跟cal的行,如cal、aaacal</td>
</tr>
<tr>
<td>+</td>
<td>重复一个字符一次或者一次以上</td>
<td>/a+b/</td>
<td>匹配一个或多个a加b的行</td>
</tr>
<tr>
<td>?</td>
<td>匹配一个或一个前导字符</td>
<td>/a?b/</td>
<td>匹配a或ab的行</td>
</tr>
<tr>
<td>[]</td>
<td>匹配字符组内的任一个字符</td>
<td>/^[abc]/</td>
<td>匹配以字母a或b或c开头的行</td>
</tr>
<tr>
<td>[^]</td>
<td>匹配不再指定字符组内的任一字符</td>
<td>/^[^abc]/</td>
<td>匹配<strong>不</strong>以字母a或b或c开头的行</td>
</tr>
<tr>
<td>()</td>
<td>子表达式组合</td>
<td>/(coo)+/</td>
<td>表示一个或coo组合，当有一些字符需要组合时，使用括号</td>
</tr>
<tr>
<td>\</td>
<td></td>
<td>或</td>
<td>/(cl)</td>
<td>B/</td>
<td>匹配cl或者字母B的行</td>
</tr>
</tbody>
</table>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">以#为分隔符，显示第一列以B开头或最后一列以1结尾的行</span><br><span class="line">awk -F &quot;#&quot; &apos;$1~/^B/&#123;print $0&#125;$NF~/1$/&#123;print $0&#125;&apos; awk.txt</span><br><span class="line">以#为分隔符，显示第一列以B或C开头的行</span><br><span class="line">awk -F &quot;#&quot; &apos;$1~/^B|^C/&#123;print $0&#125;&apos; awk.txt</span><br><span class="line">awk -F &quot;#&quot; &apos;$1~/^[BC]/&#123;print $0&#125;&apos; awk.txt</span><br><span class="line">awk -F &quot;#&quot; &apos;$1~/^(B|C)/&#123;print $0&#125;&apos; awk.txt </span><br><span class="line">awk -F &quot;#&quot; &apos;$1!~/^A/&#123;print $0&#125;&apos; awk.txt </span><br><span class="line"></span><br><span class="line">比较显示</span><br><span class="line">awk &apos;NR==2&#123;print $0&#125;NR==3&#123;print $0&#125;&apos; awk.txt </span><br><span class="line">awk &apos;NR&gt;=1&#123;print $0&#125;&apos; awk.txt </span><br><span class="line">awk &apos;/BAC/,/CBA/&#123;print $0&#125;&apos; awk.txt</span><br></pre></td></tr></table></figure>
<h4 id="计算"><a href="#计算" class="headerlink" title="计算"></a>计算</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">awk &apos;BEGIN&#123;a=8;b=90;print a+b,a-c,a/b,a%b&#125;&apos;</span><br><span class="line"># 98 8 0.0888889 8</span><br><span class="line"></span><br><span class="line">#统计空行</span><br><span class="line">grep &quot;^$&quot; test.log  |wc -l</span><br><span class="line">sed -n &apos;/^$/p&apos; test.log |wc -l</span><br><span class="line">awk &apos;/^$/&apos; test.log |wc -l</span><br><span class="line">awk &apos;/^$/&#123;i=i+1&#125;END&#123;print i&#125;&apos; test.log</span><br><span class="line"></span><br><span class="line"># 累加100</span><br><span class="line">seq 100|awk &apos;&#123;i=i+$0&#125;END&#123;print i&#125;&apos;</span><br><span class="line"></span><br><span class="line">判断</span><br><span class="line">awk &apos;&#123;if($2&gt;=90 )print $0&#125;&apos; score.txt</span><br></pre></td></tr></table></figure>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2020/01/01/linux_awk/" data-id="cka9lj6cq00499kuwxyq3zs2n" class="article-share-link">Teilen</a>
      
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/linux/">linux</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2020/03/16/go控制结构/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Neuer</strong>
      <div class="article-nav-title">
        
          go控制结构
        
      </div>
    </a>
  
  
    <a href="/2019/10/27/python_字典/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Älter</strong>
      <div class="article-nav-title">python_dict</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/tags/Design-Patterns/">Design Patterns</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Git/">Git</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Html/">Html</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Http/">Http</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/JavaScript/">JavaScript</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Sort/">Sort</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/algorithm/">algorithm</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ali-weixin-pay/">ali/weixin pay</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/docker/">docker</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/elasticsearch/">elasticsearch</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/go/">go</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hexo/">hexo</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/idea/">idea</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/java/">java</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/jvm/">jvm</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/linux/">linux</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/logstash/">logstash</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mysql/">mysql</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/php/">php</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/pytest/">pytest</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/python/">python</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/springboot/">springboot</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/util/">util</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/vue/">vue</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/wechat/">wechat</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/我的世界/">我的世界</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/消息队列/">消息队列</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/线程/">线程</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/Design-Patterns/" style="font-size: 16.36px;">Design Patterns</a> <a href="/tags/Git/" style="font-size: 10px;">Git</a> <a href="/tags/Html/" style="font-size: 10px;">Html</a> <a href="/tags/Http/" style="font-size: 12.73px;">Http</a> <a href="/tags/JavaScript/" style="font-size: 15.45px;">JavaScript</a> <a href="/tags/Sort/" style="font-size: 18.18px;">Sort</a> <a href="/tags/algorithm/" style="font-size: 11.82px;">algorithm</a> <a href="/tags/ali-weixin-pay/" style="font-size: 13.64px;">ali/weixin pay</a> <a href="/tags/docker/" style="font-size: 17.27px;">docker</a> <a href="/tags/elasticsearch/" style="font-size: 10px;">elasticsearch</a> <a href="/tags/go/" style="font-size: 11.82px;">go</a> <a href="/tags/hexo/" style="font-size: 10px;">hexo</a> <a href="/tags/idea/" style="font-size: 10px;">idea</a> <a href="/tags/java/" style="font-size: 20px;">java</a> <a href="/tags/jvm/" style="font-size: 11.82px;">jvm</a> <a href="/tags/linux/" style="font-size: 16.36px;">linux</a> <a href="/tags/logstash/" style="font-size: 12.73px;">logstash</a> <a href="/tags/mysql/" style="font-size: 14.55px;">mysql</a> <a href="/tags/php/" style="font-size: 11.82px;">php</a> <a href="/tags/pytest/" style="font-size: 10px;">pytest</a> <a href="/tags/python/" style="font-size: 13.64px;">python</a> <a href="/tags/springboot/" style="font-size: 17.27px;">springboot</a> <a href="/tags/util/" style="font-size: 19.09px;">util</a> <a href="/tags/vue/" style="font-size: 10px;">vue</a> <a href="/tags/wechat/" style="font-size: 10.91px;">wechat</a> <a href="/tags/我的世界/" style="font-size: 10px;">我的世界</a> <a href="/tags/消息队列/" style="font-size: 10.91px;">消息队列</a> <a href="/tags/线程/" style="font-size: 11.82px;">线程</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archiv</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/05/">May 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/04/">April 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/03/">March 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/01/">January 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/10/">October 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/08/">August 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/06/">June 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/04/">April 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/03/">March 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/02/">February 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/01/">January 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/12/">December 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/11/">November 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/10/">October 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/09/">September 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/07/">July 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/06/">June 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/05/">May 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/04/">April 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/03/">March 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/02/">February 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/01/">January 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/12/">December 2017</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">letzter Beitrag</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2020/05/16/linux_awk_sed/">linux-awk\sed 示例</a>
          </li>
        
          <li>
            <a href="/2020/04/11/linux_bash/">linux—bash</a>
          </li>
        
          <li>
            <a href="/2020/03/29/hello-world/">Hello World</a>
          </li>
        
          <li>
            <a href="/2020/03/16/go基础/">go基础知识</a>
          </li>
        
          <li>
            <a href="/2020/03/16/go安装和配置/">go安装和配置</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2020 chen v<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
  <script src="/fancybox/jquery.fancybox.pack.js"></script>


<script src="/js/script.js"></script>



  </div>
</body>
</html>